#ifndef BLOCK_STRING_H_
#define BLOCK_STRING_H_


#include <string>

// Function that converts int to string 
// and fixes the output format for time strings
std::string timeOutput(int time);

// Function will output "Hour:Minute" format
// numBlocks is the number of blocks from the beginning of a day
// increment is the time increment (in minutes)
std::string findTime(int numBlocks, int increment);

// Function will output in "Day  Hour:Minute to Hour:Minute" format
// Block 0 = Monday 08:00  -- Block 899 = Friday 22:55
// Error messages:
// 0 - One or both blocks do not conform to limits
// 1 - End block is smaller than start block (class ends before it starts)
// 2 - Blocks indicate different days
std::string blocksToString(int startBlock, int endBlock);

// Function that does a straight conversion from string to integer
int stringToInteger(std::string str);

// Function will take a string containing a time in the format "Day Hour:Minute":
// and output an integer time block
// Error codes
// -1: String is not of the right format 
// -2: Time is invalid
int stringToBlock(std::string str);

#endif
